<?php
namespace haibao\classlibrary\cms;

use \haibao\frame\Environment;

class Config extends \haibao\classlibrary\Config {
    /**
     * CMS后台上传图片路径
     */
    const IMAGE_UPLOAD_BASE_PATH = 'IMAGE_UPLOAD_BASE_PATH';

    /**
     * 图片剪切路径
     */
    const IMAGE_CUT_BASE_PATH = 'IMAGE_CUT_BASE_PATH';
    
    /**
     * 聚合页面生成地址
     */
    const POLYMER_HTML_BASE_PATH = 'POLYMER_HTML_BASE_PATH';
    /**
     * 聚合页面生成地址
     */
    const POLYMER_HTML_BASE_KEY_PATH = 'POLYMER_HTML_BASE_KEY_PATH';
    const ARTICLE_NEW_PIC_HTML_PATH = 'ARTICLE_NEW_PIC_HTML_PATH';
    const FTP_NEW_PIC_ARTICLE_FILE_PATH = 'FTP_NEW_PIC_ARTICLE_FILE_PATH';
        
    /**
     * @todo
     */
    const CONTROL_HTML_PUBLISH_PATH = 'CONTROL_HTML_PUBLISH_PATH';
    const CONTROL_HTML_PREVIEW_PATH = 'CONTROL_HTML_PREVIEW_PATH';
    const CONTROL_HTML_PATH = 'CONTROL_HTML_PATH';
    
    /**
     * CMS后台批量下载图片文件
     */
    const IMAGE_DOWN_BASE_PATH = 'IMAGE_DOWN_BASE_PATH';
    
    /**
     * @todo
     */
    const IMAGE_SHOW_URL = 'IMAGE_SHOW_URL';
    
    /**
     * @todo
     */
    const ARTICLE_BASE_PATH = 'ARTICLE_BASE_PATH';
    const ARTICLE_PATH = 'ARTICLE_PATH';
    const ARTICLE_SSI_PATH = 'ARTICLE_SSI_PATH';

    /**
     * 文章生成静态上传FTP目标路径
     */
    const ARTICLE_HTML_PATH = 'ARTICLE_HTML_PATH';
    const ARTICLE_TEMPLATE_PATH = 'ARTICLE_TEMPLATE_PATH';
    
    /**
     * @todo
     */
    const ARTICLE_WAP_HTML_PATH = 'ARTICLE_WAP_HTML_PATH';
    const ARTICLE_APP_WAP_HTML_PATH = 'ARTICLE_APP_WAP_HTML_PATH';
    const ARTICLE_PIC_HTML_PATH = 'ARTICLE_PIC_HTML_PATH';
    
    /**
     * 图片相关FTP目标路径
     */
    const PICS_HTML_PATH = 'PICS_HTML_PATH';
    const PICS_TEMPLATE_PATH = 'PICS_TEMPLATE_PATH';
    const PICS_B_HTML_PATH = 'PICS_B_HTML_PATH';
    const PICS_B_TEMPLATE_PATH = 'PICS_B_TEMPLATE_PATH';
    const WAP_PICS_HTML_PATH = 'WAP_PICS_HTML_PATH';
    const FTP_WAP_PIC_FILE_PATH = 'FTP_WAP_PIC_FILE_PATH';
    
    /**
     * 品牌详情
     */
    const BRANDS_HTML_PATH = 'BRANDS_HTML_PATH';
    const BRANDS_TEMPLATE_PATH = 'BRANDS_TEMPLATE_PATH';
    
    /**
     * @todo
     */
    const ARTICLE_VIEW_NAME = 'ARTICLE_VIEW_NAME';
    const NEW_ARTICLE_VIEW_NAME = 'NEW_ARTICLE_VIEW_NAME';
    const IMAGE_VIEW_NAME = 'IMAGE_VIEW_NAME';
    
    /**
     * CMS后台标签缓存文件存储位置
     */
    const CACHE_FOLDER = 'CACHE_FOLDER';
    
    /**
     * 默认文章来源
     */
    const ARTICLE_SOURCE = 'ARTICLE_SOURCE';
    
    /**
     * 是否需要同步旧库中的数据到新库
     */
    const SYNC_OLD = 'SYNC_OLD';
    
    /**
     * 前台www上传公共文件
     */
    const FTP_PUBLIC_FILE_PATH = 'FTP_PUBLIC_FILE_PATH';
    
    /**
     * @todo
     */
    const FTP_FILE_PATH = 'FTP_FILE_PATH';
    const FTP_ARTICLE_FILE_PATH = 'FTP_ARTICLE_FILE_PATH';
    const FTP_PICS_FILE_PATH = 'FTP_PICS_FILE_PATH';
    const FTP_PICS_B_FILE_PATH = 'FTP_PICS_B_FILE_PATH';
    const FTP_WAP_ARTICLE_FILE_PATH = 'FTP_WAP_ARTICLE_FILE_PATH';
    const FTP_APP_WAP_ARTICLE_FILE_PATH = 'FTP_APP_WAP_ARTICLE_FILE_PATH';
    const FTP_PIC_ARTICLE_FILE_PATH = 'FTP_PIC_ARTICLE_FILE_PATH';
    
    /**
     * 博主
     */
    const BLOG_ARTICLE_TEMPLATE_PATH = 'BLOG_ARTICLE_TEMPLATE_PATH';
    const FTP_BLOG_ARTICLE_FILE_PATH = 'FTP_BLOG_ARTICLE_FILE_PATH';
    
    /**
     * 明星造型PK
     */
    const STAR_PK_TEMPLATE_PATH = 'STAR_PK_TEMPLATE_PATH';
    const FTP_STAR_PK_TEMPLATE_PATH = 'FTP_STAR_PK_TEMPLATE_PATH';
    
    /**
     * APP上传FTP目标路径
     */
    const FTP_APP_LIST_HTML_PATH = 'FTP_APP_LIST_HTML_PATH';
    const APP_LIST_HTML_PATH = 'APP_LIST_HTML_PATH';
    const FTP_APP_WAP_FILE_PATH = 'FTP_APP_WAP_FILE_PATH';
    
    /**
     * CMS后台用户登录Cookie密钥
     */
    const COOKIE_VALIDATE_SECRET = 'COOKIE_VALIDATE_SECRET';
    
    /**
     * @todo
     */
    const TAG_LIST_DIE_TEMPLATE = 'TAG_LIST_DIE_TEMPLATE';
    
    /**
     * @todo
     */
    const IS_NEW_WEB = 'IS_NEW_WEB';

    /**
     * 造型日历
     */
    const CALENDAR_TEMPLATE_PATH = 'CALENDAR_TEMPLATE_PATH';
    const FTP_CALENDAR_HTML_PATH = 'FTP_CALENDAR_HTML_PATH';
    const AMERICAN_TEMPLATE_PATH = 'AMERICAN_TEMPLATE_PATH';
    const FTP_WAP_AMERICAN_DETAIL_HTML_PATH = 'FTP_WAP_AMERICAN_DETAIL_HTML_PATH';
    
    //视频路径
    const VIDEO_UPLOAD_BASE_PATH = 'VIDEO_UPLOAD_BASE_PATH';
    const VIDEO_UPLOAD_TEMP_BASE_PATH = 'VIDEO_UPLOAD_TEMP_BASE_PATH';
    
    //聚合文章数据路径
    const JUHE_ARTICLE_DATA_PATH = 'JUHE_ARTICLE_DATA_PATH';
    
    const LIBRARY_DETAIL_PATH = 'LIBRARY_DETAIL_PATH';
    
    const CMS_LIBRARY_DETAIL_PATH = 'CMS_LIBRARY_DETAIL_PATH';

    /**
     * 库类FTP目录(明星/品牌/设计师/美剧)
     */
    const FTP_BRANDS_FILE_PATH = 'FTP_BRANDS_FILE_PATH';
    const FTP_AMERICAN_DETAIL_HTML_PATH = 'FTP_AMERICAN_DETAIL_HTML_PATH';
    const FTP_DESIGNER_HTML_PATH = 'FTP_DESIGNER_HTML_PATH';
    const FTP_STAR_HTML_PATH = 'FTP_STAR_HTML_PATH';
    
}

Config::load(array(
    \haibao\classlibrary\cms\Config::IMAGE_UPLOAD_BASE_PATH => '/uploads/',
    \haibao\classlibrary\cms\Config::IMAGE_CUT_BASE_PATH => '/imagecut/0_400/',
    \haibao\classlibrary\cms\Config::POLYMER_HTML_BASE_PATH => '/diytaghtml/',
    \haibao\classlibrary\cms\Config::POLYMER_HTML_BASE_KEY_PATH => '/diykeyhtml/',
    
    \haibao\classlibrary\cms\Config::CONTROL_HTML_PUBLISH_PATH => '/controlhtml/publish/',
    \haibao\classlibrary\cms\Config::CONTROL_HTML_PREVIEW_PATH => '/controlhtml/preview/',
    \haibao\classlibrary\cms\Config::CONTROL_HTML_PATH => '/controlhtml/html/',
    
    \haibao\classlibrary\cms\Config::IMAGE_DOWN_BASE_PATH => './resource/HAIBAO.zip',
    
    \haibao\classlibrary\cms\Config::IMAGE_SHOW_URL => '/image/getpic.html?id=',
    
    \haibao\classlibrary\cms\Config::ARTICLE_BASE_PATH => '/htm2013/',
    \haibao\classlibrary\cms\Config::ARTICLE_PATH => '/htm2013/article_new_block/',
    \haibao\classlibrary\cms\Config::ARTICLE_SSI_PATH => '/htm2013/ssi/public/',
    
    \haibao\classlibrary\cms\Config::ARTICLE_HTML_PATH => '/articlehtml/html/',
    \haibao\classlibrary\cms\Config::ARTICLE_TEMPLATE_PATH => '/articlehtml/',
    
    \haibao\classlibrary\cms\Config::ARTICLE_WAP_HTML_PATH => '/articlehtml/wap/',
    \haibao\classlibrary\cms\Config::ARTICLE_APP_WAP_HTML_PATH => '/articlehtml/wap/appstars/',
    \haibao\classlibrary\cms\Config::ARTICLE_PIC_HTML_PATH => '/articlehtml/pic/',
    
    \haibao\classlibrary\cms\Config::PICS_HTML_PATH => '/pics/pics/html/',
    \haibao\classlibrary\cms\Config::PICS_TEMPLATE_PATH => '/pics/pics/',
    \haibao\classlibrary\cms\Config::PICS_B_HTML_PATH => '/pics/pics_b/html/',
    \haibao\classlibrary\cms\Config::PICS_B_TEMPLATE_PATH => '/pics/pics_b/',
    \haibao\classlibrary\cms\Config::WAP_PICS_HTML_PATH => '/pics/wap/',
    \haibao\classlibrary\cms\Config::FTP_WAP_PIC_FILE_PATH => '/wap/pics/',
    
    \haibao\classlibrary\cms\Config::ARTICLE_VIEW_NAME => 'article',
    \haibao\classlibrary\cms\Config::NEW_ARTICLE_VIEW_NAME => '/articles/',
    \haibao\classlibrary\cms\Config::IMAGE_VIEW_NAME => '/pics/',
    \haibao\classlibrary\cms\Config::CACHE_FOLDER => '/cachefiles',
    
    \haibao\classlibrary\cms\Config::BRANDS_HTML_PATH => '/brandshtml/html/',
    \haibao\classlibrary\cms\Config::BRANDS_TEMPLATE_PATH => '/brandshtml/',
    
    \haibao\classlibrary\cms\Config::ARTICLE_SOURCE => '海报时尚网',
    
    \haibao\classlibrary\cms\Config::SYNC_OLD => true,
    
    \haibao\classlibrary\cms\Config::FTP_PUBLIC_FILE_PATH => '/public/',
    
    \haibao\classlibrary\cms\Config::FTP_FILE_PATH => '/ssi/ssi/',
    \haibao\classlibrary\cms\Config::FTP_ARTICLE_FILE_PATH => '/articlehtml/',
    \haibao\classlibrary\cms\Config::FTP_PICS_FILE_PATH => '/pics/pics/',
    \haibao\classlibrary\cms\Config::FTP_PICS_B_FILE_PATH => '/pics/pics_b/',
    \haibao\classlibrary\cms\Config::FTP_WAP_ARTICLE_FILE_PATH => '/wap/article/',
    \haibao\classlibrary\cms\Config::FTP_APP_WAP_ARTICLE_FILE_PATH => '/wap/appstars/article/',
    \haibao\classlibrary\cms\Config::FTP_PIC_ARTICLE_FILE_PATH => '/articlehtml/pic/',
    
    \haibao\classlibrary\cms\Config::BLOG_ARTICLE_TEMPLATE_PATH => '/blogarticle/',
    \haibao\classlibrary\cms\Config::FTP_BLOG_ARTICLE_FILE_PATH => '/channel/fashionista/article/',
    
    \haibao\classlibrary\cms\Config::STAR_PK_TEMPLATE_PATH => '/starpkhtml/',
    \haibao\classlibrary\cms\Config::FTP_STAR_PK_TEMPLATE_PATH => '/channel/stars/starpk/',
    
    \haibao\classlibrary\cms\Config::FTP_APP_LIST_HTML_PATH => '/app/',
    \haibao\classlibrary\cms\Config::APP_LIST_HTML_PATH => '/appstarhtml/',
    \haibao\classlibrary\cms\Config::FTP_APP_WAP_FILE_PATH => '/wap/appstars/',
    
    \haibao\classlibrary\cms\Config::COOKIE_VALIDATE_SECRET => '0AIXGy_ydGuMB4p446e$dOWXR#527-6hcN',
    
    \haibao\classlibrary\cms\Config::TAG_LIST_DIE_TEMPLATE => 44,
    
    \haibao\classlibrary\cms\Config::IS_NEW_WEB => true,


    \haibao\classlibrary\cms\Config::CALENDAR_TEMPLATE_PATH => '/calendarhtml/',
    \haibao\classlibrary\cms\Config::FTP_CALENDAR_HTML_PATH => '/channel/calendar/',
    \haibao\classlibrary\cms\Config::AMERICAN_TEMPLATE_PATH => '/tvhtml/',
    \haibao\classlibrary\cms\Config::FTP_WAP_AMERICAN_DETAIL_HTML_PATH => '/wap/tv/detail/',
    
    \haibao\classlibrary\cms\Config::VIDEO_UPLOAD_BASE_PATH => '/uploadvideo/',
    \haibao\classlibrary\cms\Config::VIDEO_UPLOAD_TEMP_BASE_PATH => '/uploadvideo/temp/',
    
    \haibao\classlibrary\cms\Config::JUHE_ARTICLE_DATA_PATH => '/articledata/',
    
    \haibao\classlibrary\cms\Config::LIBRARY_DETAIL_PATH => '/export/haibaohtmlfile/channel/',
    
    \haibao\classlibrary\cms\Config::CMS_LIBRARY_DETAIL_PATH => '/data/web/cms.haibao.cn/trunk/library/',
    
    // 库FTP
    \haibao\classlibrary\cms\Config::FTP_BRANDS_FILE_PATH => '/channel/library/brands/',
    \haibao\classlibrary\cms\Config::FTP_AMERICAN_DETAIL_HTML_PATH => '/channel/library/tv/',
    \haibao\classlibrary\cms\Config::FTP_DESIGNER_HTML_PATH => '/channel/library/designers/',
    \haibao\classlibrary\cms\Config::FTP_STAR_HTML_PATH => '/channel/library/stars/',
));